import axios from 'axios';

axios.defaults.baseURL='http://127.0.0.1:5000';


//获取列表接口
export let getcate=(params)=>axios.get('/goods/catelist',{params});

//修改分类
export let amendcate=(params)=>axios.post('/goods/editcate',params);

//删除商品
export let delecate=(params)=>axios.get('/goods/delcate',{params});

//添加分类
export let addcate=(params)=>axios.post('/goods/addcate',params);

//获取商品列表
export let goodsList=(params)=>axios.get('/goods/list',{params});

//删除商品
export let goodsDele=(params)=>axios.get('/goods/del',{params});

//修改商品
export let amendGoods=(params)=>axios.post('/goods/edit',params);

//查询所有分类
export let getCateName=(params)=>axios.get('/goods/categories',{params});

//添加商品
export let addGoods=(params)=>axios.post('/goods/add',params);

//获取列表
export let getOrderList=(params)=>axios.get('/order/list',{params});

//修改订单
export let amendOrder=(params)=>axios.post('/order/edit',params);





